<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Github extends CI_Controller {

    public function index()
    {
        require_once('class.GitHubHook.php');
        $hook = new GitHubHook;
        // Enable the debug log, kindly make `log/hook.log` writable
        $hook->enableDebug();

        // Adding `stage` branch to deploy for `staging` to path `/var/www/testhook/stage`
        $hook->addBranch('master', 'master', '/var/www/richard_tiebahelper');

        // Deploy the commits
        $hook->deploy();
    }

}

/* End of file github.php */
/* Location: ./application/controllers/github.php */